package cn.itcast.client;

import cn.itcast.config.FeignConfig;
import cn.itcast.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: taft
 * @Date: 2018-9-27 10:43
 */
@FeignClient(value = "user-service",fallback = ConsumerFallback.class,configuration = FeignConfig.class)
public interface ConsumerClient {

    @GetMapping("user/{id}")
     User queryUserById(@PathVariable("id")Long id);


}
